package com.msg.beans;

import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;


public class GraphBean {

	private String Event_Code;
	private String  Ticket_Level_Name;
	private int Sold_Seats;
	private int Comp_Seats;
	private int Total_Amount;
	private int Capacity;
	
	
	public int getCapacity(){
		return Capacity;
	}
	
	public void setCapacity(int capacity){
		Capacity=capacity;
	}
	
	public String getEvent_Code() {
		return Event_Code;
	}


	public void setEvent_Code(String event_Code) {
		Event_Code = event_Code;
	}

		
	
	public GraphBean(){}


	public JSONObject toJSONObject() {
		JSONObject json = new JSONObject();
		try {
			json.put("Event_Code", Event_Code);
			json.put("Ticket_Level_Name", Ticket_Level_Name);
			json.put("Sold_Seats", Sold_Seats);
			json.put("Comp_Seats", Comp_Seats);
			json.put("Total_Amount", Total_Amount);
			json.put("Capacity", Capacity);
			
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return json;
	}
	
	public int getSold_Seats() {
		return Sold_Seats;
	}


	public void setSold_Seats(int sold_Seats) {
		Sold_Seats = sold_Seats;
	}

	public int getComp_Seats() {
		return Comp_Seats;
	}


	public void setComp_Seats(int comp_Seats) {
		Comp_Seats = comp_Seats;
	}
	
	public int getTotal_Amount() {
		return Total_Amount;
	}


	public void setTotal_Amount(int total_Amount) {
		Total_Amount = total_Amount;
	}




	public String getTicket_Level_Name() {
		return Ticket_Level_Name;
	}


	public void setTicket_Level_Name(String ticket_Level_Name) {
		Ticket_Level_Name = ticket_Level_Name;
	}


	@Override
	public String toString() {
		return "TicketBean [Event_Code=" + Event_Code + ", Ticket_Level_Name=" + Ticket_Level_Name + ", Sold_Seats=" + Sold_Seats + ", Total_Amount="
				+ Total_Amount + "]";
	}


	

	
}